package com.anycl.customer.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

/**
 * 管理员
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdminUser {

    private Integer id;

    private String username;

    private String password;

    private Integer status; // 0正常  1禁用

    public AdminUser(String username, String password, Integer status) {
        this.username = username;
        this.password = password;
        this.status = status;
    }

    public boolean validate() {
        return StringUtils.isNotEmpty(username) && StringUtils.isNotEmpty(password);
    }
}
